#include<stdio.h>
int main()
{
	int i,sum=0;
	for(i=1;i<=100;i++)
	{
		sum=i+sum;
	}
	printf("the result is :%d\n",sum);
	i=1;
	sum=0;
	while(i<=100)
	{
		sum=i+sum;
		i++;
	}
	printf("the result is:%d\n",sum);
	return 0;
 } 
